//
//  CTHotSpotDetailCell.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/6/7.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTHotSpotsDetailItem,CTTopic;

@protocol CTHotSpotDetailCellDelegate;
@class CTFollowList,CTListDetailUser,CTComment;

@interface CTHotSpotDetailCell : UITableViewCell

@property (nonatomic, setter=setCellItem:) CTHotSpotsDetailItem *hotItem;
@property (nonatomic, strong)     CTListDetailUser *listDetaiItme;
//@property (nonatomic, assign)   float   cellHeight;
//@property (nonatomic,setter=setCommentViewArray:) NSArray * commentArray;
//@property (nonatomic,setter=setSqcView:) NSString * sqcStr;
//@property (nonatomic,setter=setName:)NSString * name;
//@property (nonatomic,setter=setTimeLabel:) NSString * timeStr;
//@property (nonatomic,setter=setHeadImgUrl:)NSString * imgUrl;
//@property (nonatomic,setter=setSexStr:) NSString * sexStr;
//@property (nonatomic,setter=setPicImgUrl:) NSString * picImgUrl;
//@property (nonatomic,setter=setDescribeText:) NSString *describeText;
//@property (nonatomic,setter=setFavour:) NSString * favourStr;
//@property (nonatomic,setter=setFavourCountLabelText:) int favCounNumber;
//@property (nonatomic,setter=setDesRange:) NSRange desRange;
//@property (nonatomic,setter=setFavHeadImgUrl:) NSArray *favHeadImgUrlArray;
//@property (nonatomic,setter=setAttentionBtnBool:) BOOL attentionBool;

@property (nonatomic, assign)id<CTHotSpotDetailCellDelegate>delegate;

@end

@protocol CTHotSpotDetailCellDelegate  <NSObject>
/**
 *@brief 点击评论总数
 */
- (void)hotSpotDetailCellCommentCountAction:(CTHotSpotDetailCell *)cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第一条
 */
- (void)hotSpotDetailCellCommentHitFirstLabelAction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第二条
 */
- (void)hotSpotDetailCellCommentHitSecondLabelAction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第一条头像
 */
- (void)hotSpotDetailCellCommentHitFirstHeadAction:(CTHotSpotDetailCell *)cell withItem:(CTComment *) item;
/**
 *@brief 点击评论第二条头像
 */
- (void)hotSpotDetailCellCommentHitSecondHeadAction:(CTHotSpotDetailCell *)cell withItem:(CTComment *)item;
/**
 *@brief 点击头像
 */
- (void)hotSpotDetailCellHitHeadAction:(CTHotSpotDetailCell *)cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击大图
 */
- (void)hotSpotDetailCellHitPicImageBtnAction:(CTHotSpotDetailCell *)cell withItem:(CTHotSpotsDetailItem *)item withImageView:(UIImageView*)picImageView;
/**
 *@brief 点赞
 */
- (void)hotSpotDetailCellHitFavourBtnAction:(CTHotSpotDetailCell *)cell withItem:(CTHotSpotsDetailItem *)item withBool:(BOOL) favBool;
/**
 *@brief 点击评论按钮
 */
- (void)hotSpotDetailCellHitCommentBtnaction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击分享按钮
 */
- (void)hotSpotDetailCellHitShareBtnAction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item withImage:(UIImage *)img;
/**
 *@brief 点击更多按钮
 */
- (void)hotSpotDetailCellHitMoreBtnAction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击点赞的人的头像
 */
- (void)hotSpotDetailCellHitFavBtnHeadAction:(CTHotSpotDetailCell *)cell withItem:(CTListDetailUser *)item;
/**
 *@brief 点击关注按钮
 */
- (void)hotSpotDetailCellHitAttentionBtnAction:(CTHotSpotDetailCell *) cell withItem:(CTHotSpotsDetailItem *)item withBool:(BOOL)attentionBool;
/**
 *@brief 点击话题
 */
- (void)hotSpotDetailCellHitTopicBtnAction:(CTHotSpotDetailCell *) cell withItem:(CTTopic *)item;
@end


@protocol CTHotCellDelegate;
@interface CTHotCell : UITableViewCell
@property (nonatomic, strong) CTHotSpotsDetailItem *item;
@property (nonatomic,setter=setSexStr:) NSString * sexStr;
@property (nonatomic,setter=setName:)NSString * name;
@property (nonatomic,setter=setHeadImgUrl:)NSString * imgUrl;
@property (nonatomic, assign)id<CTHotCellDelegate>delegate;

@end

@protocol CTHotCellDelegate <NSObject>

- (void)followTableCellHitAttentionBtnAction:(CTHotCell *) cell withItme:(CTHotSpotsDetailItem *)item;

@end





@class CTListDetailUser;


@protocol FavourHotHeadBtnDelegate;

@interface FavourHotHeadBtn: UIButton

@property(nonatomic,assign)id<FavourHotHeadBtnDelegate>delegate;
@property(nonatomic,setter=setListDetailUserItem:)CTListDetailUser * userItem;

-(FavourHotHeadBtn *)creatBtn:(FavourHotHeadBtn *)btn;

@end

@protocol FavourHotHeadBtnDelegate <NSObject>

-(void)favourHeadBtnClickedAction:(FavourHotHeadBtn *)btn
                     withUserItem:(CTListDetailUser *)itm;

@end


